package cn.domob.android.ads;

import android.view.animation.AlphaAnimation;
import android.view.animation.AnimationSet;
import android.view.animation.TranslateAnimation;

class af
{
  private static J a = new J(af.class.getSimpleName());
  private static AnimationSet[] b;
  private static AnimationSet[] c;
  private static AnimationSet[] d;
  private static AnimationSet[] e;
  private static AnimationSet[] f;
  private static final long g = 700L;

  private static AnimationSet[] a()
  {
    if (b == null)
    {
      TranslateAnimation localTranslateAnimation1 = new TranslateAnimation(1, 0.0F, 1, 0.0F, 1, 1.0F, 1, 0.0F);
      localTranslateAnimation1.setDuration(700L);
      TranslateAnimation localTranslateAnimation2 = new TranslateAnimation(1, 0.0F, 1, 0.0F, 1, 0.0F, 1, -1.0F);
      localTranslateAnimation2.setDuration(700L);
      AlphaAnimation localAlphaAnimation1 = new AlphaAnimation(0.0F, 1.0F);
      localAlphaAnimation1.setDuration(700L);
      AlphaAnimation localAlphaAnimation2 = new AlphaAnimation(1.0F, 0.0F);
      localAlphaAnimation2.setDuration(700L);
      AnimationSet localAnimationSet1 = new AnimationSet(true);
      localAnimationSet1.addAnimation(localTranslateAnimation1);
      localAnimationSet1.addAnimation(localAlphaAnimation1);
      AnimationSet localAnimationSet2 = new AnimationSet(true);
      localAnimationSet2.addAnimation(localTranslateAnimation2);
      localAnimationSet2.addAnimation(localAlphaAnimation2);
      b = new AnimationSet[] { localAnimationSet1, localAnimationSet2 };
    }
    return b;
  }

  protected static AnimationSet[] a(a parama)
  {
    switch (1.a[parama.ordinal()])
    {
    default:
      a.e(af.class.getSimpleName(), "Invalid animation type.");
      return null;
    case 1:
      return a();
    case 2:
      return b();
    case 3:
      return c();
    case 4:
      return d();
    case 5:
    }
    return e();
  }

  private static AnimationSet[] b()
  {
    if (c == null)
    {
      TranslateAnimation localTranslateAnimation1 = new TranslateAnimation(1, 0.0F, 1, 0.0F, 1, -1.0F, 1, 0.0F);
      localTranslateAnimation1.setDuration(700L);
      TranslateAnimation localTranslateAnimation2 = new TranslateAnimation(1, 0.0F, 1, 0.0F, 1, 0.0F, 1, 1.0F);
      localTranslateAnimation2.setDuration(700L);
      AlphaAnimation localAlphaAnimation1 = new AlphaAnimation(0.0F, 1.0F);
      localAlphaAnimation1.setDuration(700L);
      AlphaAnimation localAlphaAnimation2 = new AlphaAnimation(1.0F, 0.0F);
      localAlphaAnimation2.setDuration(700L);
      AnimationSet localAnimationSet1 = new AnimationSet(true);
      localAnimationSet1.addAnimation(localTranslateAnimation1);
      localAnimationSet1.addAnimation(localAlphaAnimation1);
      AnimationSet localAnimationSet2 = new AnimationSet(true);
      localAnimationSet2.addAnimation(localTranslateAnimation2);
      localAnimationSet2.addAnimation(localAlphaAnimation2);
      c = new AnimationSet[] { localAnimationSet1, localAnimationSet2 };
    }
    return c;
  }

  private static AnimationSet[] c()
  {
    if (d == null)
    {
      TranslateAnimation localTranslateAnimation1 = new TranslateAnimation(1, -1.0F, 1, 0.0F, 1, 0.0F, 1, 0.0F);
      localTranslateAnimation1.setDuration(700L);
      TranslateAnimation localTranslateAnimation2 = new TranslateAnimation(1, 0.0F, 1, 1.0F, 1, 0.0F, 1, 0.0F);
      localTranslateAnimation2.setDuration(700L);
      AlphaAnimation localAlphaAnimation1 = new AlphaAnimation(0.0F, 1.0F);
      localAlphaAnimation1.setDuration(700L);
      AlphaAnimation localAlphaAnimation2 = new AlphaAnimation(1.0F, 0.0F);
      localAlphaAnimation2.setDuration(700L);
      AnimationSet localAnimationSet1 = new AnimationSet(true);
      localAnimationSet1.addAnimation(localTranslateAnimation1);
      localAnimationSet1.addAnimation(localAlphaAnimation1);
      AnimationSet localAnimationSet2 = new AnimationSet(true);
      localAnimationSet2.addAnimation(localTranslateAnimation2);
      localAnimationSet2.addAnimation(localAlphaAnimation2);
      d = new AnimationSet[] { localAnimationSet1, localAnimationSet2 };
    }
    return d;
  }

  private static AnimationSet[] d()
  {
    if (e == null)
    {
      TranslateAnimation localTranslateAnimation1 = new TranslateAnimation(1, 1.0F, 1, 0.0F, 1, 0.0F, 1, 0.0F);
      localTranslateAnimation1.setDuration(700L);
      TranslateAnimation localTranslateAnimation2 = new TranslateAnimation(1, 0.0F, 1, -1.0F, 1, 0.0F, 1, 0.0F);
      localTranslateAnimation2.setDuration(700L);
      AlphaAnimation localAlphaAnimation1 = new AlphaAnimation(0.0F, 1.0F);
      localAlphaAnimation1.setDuration(700L);
      AlphaAnimation localAlphaAnimation2 = new AlphaAnimation(1.0F, 0.0F);
      localAlphaAnimation2.setDuration(700L);
      AnimationSet localAnimationSet1 = new AnimationSet(true);
      localAnimationSet1.addAnimation(localTranslateAnimation1);
      localAnimationSet1.addAnimation(localAlphaAnimation1);
      AnimationSet localAnimationSet2 = new AnimationSet(true);
      localAnimationSet2.addAnimation(localTranslateAnimation2);
      localAnimationSet2.addAnimation(localAlphaAnimation2);
      e = new AnimationSet[] { localAnimationSet1, localAnimationSet2 };
    }
    return e;
  }

  private static AnimationSet[] e()
  {
    if (f == null)
    {
      AlphaAnimation localAlphaAnimation1 = new AlphaAnimation(0.0F, 1.0F);
      localAlphaAnimation1.setDuration(700L);
      AlphaAnimation localAlphaAnimation2 = new AlphaAnimation(1.0F, 0.0F);
      localAlphaAnimation2.setDuration(700L);
      AnimationSet localAnimationSet1 = new AnimationSet(true);
      localAnimationSet1.addAnimation(localAlphaAnimation1);
      AnimationSet localAnimationSet2 = new AnimationSet(true);
      localAnimationSet2.addAnimation(localAlphaAnimation2);
      f = new AnimationSet[] { localAnimationSet1, localAnimationSet2 };
    }
    return f;
  }

  protected static enum a
  {
    static
    {
      a[] arrayOfa = new a[5];
      arrayOfa[0] = a;
      arrayOfa[1] = b;
      arrayOfa[2] = c;
      arrayOfa[3] = d;
      arrayOfa[4] = e;
      f = arrayOfa;
    }
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     cn.domob.android.ads.af
 * JD-Core Version:    0.5.4
 */